

import java.awt.CardLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

public class ControlResolucao implements ActionListener{
    Banco banco = new Banco();
    JPanel principal;
    
    @Override
    public void actionPerformed(ActionEvent ae) {
        CardLayout cl = (CardLayout)(principal.getLayout());
        cl.next(principal);
    }

    void setPrincipal(JPanel principal) {
        this.principal = principal;
    }
    
}